package com.qfxl.common.config.webMvcConfig;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface TokenValidationListener {
    // 校验之前，用户可实现此方法执行操作
    void beforeValidation(HttpServletRequest request, HttpServletResponse response, Object handler);

    boolean isSkipValidation(HttpServletRequest request, HttpServletResponse response, Object handler);

    //校验token
    void ValidationToken(HttpServletRequest request, HttpServletResponse response, Object handler);

    // 校验之后，用户可实现此方法执行操作
    void afterValidation(HttpServletRequest request, HttpServletResponse response, Object handler);
}